Repository navigation
feat: add OpenCode V2 host support - #1
Closed
sudomarcma wants to merge 1 commit into
Closed
sudomarcma wants to merge 1 commit into
sudomarcma wants to merge 1 commit into
Conversation
Add a first-class OpenCode V2 Host Kit and plugin package that registers HelixHarness commands, method skills and subagent roles from the canonical resources instead of copying Markdown into .opencode/. - add hosts/opencode manifest, runtime, subagent, UT, lifecycle, project config and installer resources - add opencode/index.ts + core.ts with Host Context injection, argument substitution, native subagent mappings and repo_root binding for skills - add Bun unit, registration and real-server E2E tests - add Python Host Kit, detector, telemetry/update and feedback coverage - document OpenCode installation, verification and Workspace depth setup
ayochao
self-requested a review
November 4, 2026 07:11
Collaborator
|
感谢提交适配,有三点想请你再确认一下:
|
3 tasks done
Collaborator
|
已通过 #29 ,合并入主干分支:本次完成 OpenCode 宿主适配,支持 9 个 /helix:* 命令、核心工作流、任务管理、编辑后巡检及阶段统计,请更新主干代码后重试。如仍遇到问题,请补充环境信息和报错 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds OpenCode V2 as a first-class HelixHarness host while keeping the canonical
commands/,skills/, andagents/files as the only business sources.hosts/opencode/with the manifest, command projection, runtime, subagent, UT, lifecycle, project config, project hooks, and installer resources.helixharness/package.json+helixharness/opencode/) that registershelix:<command>,helix-<skill>, andhelix-<agent>from the canonical files instead of copying Markdown into.opencode/.$ARGUMENTS/ plugin and repo paths, forwards command attachments, and submits throughsession.promptwithout recursive command execution.read,edit,shell,question,skill,subagent) and binds method-skillrepo_rootto the requesting session.helix-workerrole for genericmay_delegateWorkspace Apply RepoJobs; canonical roles get asubagentdeny rule for default leaf semantics.unsupported; existing scripts already returnunsupported_host/continue_silently.AGENTS.mdwithsettings_file=null, and declares project hooks unsupported rather than inventing a settings contract.Closes #2
Testing
python3 scripts/run_tests.py— 372 tests pass on Python 3.12.bun test opencode/tests— 15 pass, 4 gated E2E tests skipped.bun run typecheck— passes.HELIXHARNESS_OPENCODE_E2E=1 bun test opencode/tests/e2e.test.ts— 2 tests pass against a real OpenCode 2.2.2 server, covering command/skill/agent registration and command prompt admission with Host Context.node_modules; the runtime plugin has no npm runtime dependencies.Deployment notes
experimental.subagent_depth >= 2inopencode.json(c); single-repo flows are unaffected. Documented in the OpenCode installer and subagent adapter.d-d2cskill-scopedStop/PreToolUseguards are not active on OpenCode; the adapter documents the no-hook/--baresemantics./helix:updatereturnscontinue_silently; users update throughopencode plugin update.